import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/article/getList',
    method: 'get',
    params,
  })
}

export function getRecycleList(params) {
  return request({
    url: '/article/getRecycleList',
    method: 'get',
    params,
  })
}

export function recycle(params) {
  return request({
    url: '/article/recycle',
    method: 'get',
    params,
  })
}

export function restore(params) {
  return request({
    url: '/article/restore',
    method: 'get',
    params,
  })
}

export function privacy(params) {
  return request({
    url: '/article/privacy',
    method: 'get',
    params,
  })
}

export function get(params) {
  return request({
    url: '/article/get',
    method: 'get',
    params,
  })
}

export function _delete(params) {
  return request({
    url: '/article/delete',
    method: 'post',
    data: params,
  })
}

export function update(params) {
  return request({
    url: '/article/update',
    method: 'post',
    data: params,
  })
}

export function add(params) {
  return request({
    url: '/article/add',
    method: 'post',
    data: params,
  })
}
